<?php
class WebVisitor
{
	public static function isLogin(){
		if(UserSession::getUserInfo()){
			return TRUE;
		}
		return FALSE;
	}
	public static function checkLogin(){
		if(UserSession::getUserInfo()){
			return TRUE;
		}
		BaseAction::error("对不起，请不要非法操作");
	}
	
	public static function getIp(){
		require_once SOURCE_EXT_PATH.'library/IpLib.php';
		return IpLib::retrieveClientIp();
	}
	public static function getDateTime(){
		return date('Y-m-d H:i:s');
	}
	

}

?>